package msr.validator;

import msr.util.RequestAction;

public class ValidatorFactory {
	protected String type;

	public ExpertValidator getValidator(String type) {
		if (type.equals(RequestAction.VALIDATOR_USER))
			return new UserValidator();
		else if (type.equals(RequestAction.VALIDATOR_PRODUCT))
			return new ProductValidator();
		else
			return null;
	}
}
